package pattern.structrual.decorator.v2;

/**
 * @Author Gavin
 * @date 2020.07.16 15:31
 */
public class SausageDecorator extends AbstractDescorator {
    @Override
    protected String desc() {
        return super.desc() + "加1根火腿";
    }

    @Override
    protected String cost() {
        return super.cost() + "2元";
    }

    public SausageDecorator(ABattercake aBattercake) {
        super(aBattercake);
    }

    @Override
    void doSomething() {
        System.out.println("额外做一些事情。");
    }
}
